import { _decorator, Collider, Component, Node, RigidBody } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Barrier')
export class Barrier extends Component {

    RigidBody: RigidBody = null;
    Collider: Collider = null;

    protected onLoad(): void {
        this.RigidBody = this.node.getComponent(RigidBody);
        this.Collider = this.node.getComponent(Collider);
    }

}


